package cn.xiaopengstack.api.service;

import cn.xiaopengstack.api.dto.HomePageRequestDTO;
import cn.xiaopengstack.api.dto.HomePageResponseDTO;
import cn.xiaopengstack.api.dto.UserGroupBuyOrderDTO;
import cn.xiaopengstack.types.model.Response;

import java.util.List;

/**
 * @author jiangyangang
 */
public interface IHomePageService {

    /**
     * 查询商品的拼团活动信息
     * @param requestDTO
     * @return
     */
    Response<HomePageResponseDTO> queryGoodsGroupBuyInfo(HomePageRequestDTO requestDTO);


    /**
     * 查询用户已拼团的记录
     * @param userId
     * @return
     */
    Response<List<UserGroupBuyOrderDTO>> queryUserGroupBuyOrders(String userId);

//    /**
//     * 查询用户拼团的详情
//     * @param userId
//     * @param orderId
//     * @return
//     */
//    ResponseCode<UserGroupBuyOrderDetailDTO> queryUserGroupBuyOrderDetail(String userId, String orderId);
}
